package com.ruoyi.cs.domain;

import java.math.BigDecimal;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户余额变动对象 t_balance_change
 * 
 * @author ruoyi
 * @date 2022-05-24
 */
@Data
public class TBalanceChange extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @ApiModelProperty(value = "id")
    private int id;

    /** 用户ID */
    @ApiModelProperty(value = "用户ID")
    @Excel(name = "用户ID")
    private String userId;

    /** 变动前余额 */
    @ApiModelProperty(value = "变动前余额")
    @Excel(name = "变动前余额")
    private BigDecimal balanceBefore;

    /** 变动后余额 */
    @ApiModelProperty(value = "变动后余额")
    @Excel(name = "变动后余额")
    private BigDecimal balanceAfter;

    /** 操作类型：0-充值  1-开箱 2-幸运饰品升级 3-饰品商城  4-红包 5-兑换..  */
    @ApiModelProperty(value = "操作类型：0-充值  1-开箱 2-幸运饰品升级 3-饰品商城  4-红包 5-兑换.. ")
    @Excel(name = "操作类型：0-充值  1-开箱 2-幸运饰品升级 3-饰品商城  4-红包 5-兑换.. ")
    private String operationType;

    /** 次数 */
    @ApiModelProperty(value = "次数")
    @Excel(name = "次数")
    private int frequency;

    /** 变动金额 */
    @ApiModelProperty(value = "变动金额")
    @Excel(name = "变动金额")
    private BigDecimal fee;

    /** 对应操作类型ID，充值-充值ID，兑换-背包ID */
    @ApiModelProperty(value = "对应操作类型ID，充值-充值ID，兑换-背包ID")
    @Excel(name = "对应操作类型ID，充值-充值ID，兑换-背包ID")
    private String correspondingid;


    /** 变动前余额 */
    @ApiModelProperty(value = "充值积分变动前")
    @Excel(name = "充值积分变动前")
    private BigDecimal czIntegralBefore;

    /** 变动后余额 */
    @ApiModelProperty(value = "充值积分变动后")
    @Excel(name = "充值积分变动后")
    private BigDecimal czIntegralAfter;


    /** 变动前余额 */
    @ApiModelProperty(value = "推广充值积分变动前")
    @Excel(name = "推广充值积分变动前")
    private BigDecimal tgIntegralBefore;

    /** 变动后余额 */
    @ApiModelProperty(value = "推广充值积分变动后")
    @Excel(name = "推广充值积分变动后")
    private BigDecimal tgIntegralAfter;

    @ApiModelProperty(value = "状态 0-待消费 1-已消费")
    private Integer status;

    /** 变动后余额 */
    @ApiModelProperty(value = "第二套货币变动前")
    private BigDecimal secondCurrencyBefore;

    /** 变动后余额 */
    @ApiModelProperty(value = "第二套货币变动后")
    private BigDecimal secondCurrencyAfter;

    @ApiModelProperty(value = "消费计量值")
    private BigDecimal consumeValue;

    @ApiModelProperty(value = "获利价值")
    private BigDecimal profitPrice;

    @ApiModelProperty(value = "实际消费")
    private BigDecimal costFee;


}
